//
//  AssetHelper.m
//
//  Created by Steffen Itterheim on 09.04.10.
//  Copyright 2010 Steffen Itterheim. All rights reserved.
//

#import "AssetHelper.h"


@interface AssetHelper (Private)
@end

@implementation AssetHelper

+(NSString*) getDeviceSpecificFileNameFor:(NSString*)fileName
{
#if TARGET_IPAD
	if (fileName == nil)
		return nil;

	NSString* justFileName = [fileName stringByDeletingPathExtension];
	justFileName = [justFileName stringByAppendingString:@"-ipad"];
	
	NSString* extension = [fileName pathExtension];
	if ([extension length] > 0)
	{
		return [justFileName stringByAppendingPathExtension:extension];
	}
	
	return justFileName;
#else
	return fileName;
#endif
}

@end
